package top.wardyan.wmes.rfid.vo;

import top.wardyan.wmes.constant.CardType;

/** 
 * RFID扎卡
 * @author harrydeep@wardyan.top
 * 2021年10月26日
 */
public class Card {

	/** 批号ID **/
	Integer poid;
	
	/** 批号 **/
	String po;
	
	/** 款号 **/
	String styleNo;
	
	/** 色组 **/
	Integer mcolorID;
	/** 色组 **/
	String mcolor;
	
	/** 尺码 **/
	String size;
	
	/** 杯码 / 主缸 **/
	String mvat;
	
	/** 扎卡条码 **/
	Long card;
	
	/** 扎号 **/
	Integer cardNo;
	
	/** RFID卡号. 如果发了多个卡 这里也只能记录到一个卡 **/
	Long rfidNo;
	
	/** 扎卡件数, 已扣除扣数 **/
	Integer qty;
	
	/** 扣数 **/
	//Integer badQty;
	
	/** 扎卡类型 **/
	CardType cardType;
	
	/** 部件 **/ 
	Integer partID;
	/** 部件 **/
	String part;
	
	// 如果以后要支持高频卡（文本型）的，再考虑
	String uhfID;
	
	
	
	public Integer getPoid() {
		return poid;
	}
	public Card setPoid(Integer poid) {
		this.poid = poid;
		return this;
	}
	public String getPo() {
		return po;
	}
	public Card setPo(String po) {
		this.po = po;
		return this;
	}
	public String getStyleNo() {
		return styleNo;
	}
	public Card setStyleNo(String styleNo) {
		this.styleNo = styleNo;
		return this;
	}
	public Integer getMcolorID() {
		return mcolorID;
	}
	public Card setMcolorID(Integer mcolorID) {
		this.mcolorID = mcolorID;
		return this;
	}
	public String getMcolor() {
		return mcolor;
	}
	public Card setMcolor(String mcolor) {
		this.mcolor = mcolor;
		return this;
	}
	public String getSize() {
		return size;
	}
	public Card setSize(String size) {
		this.size = size;
		return this;
	}
	public String getMvat() {
		return mvat;
	}
	public Card setMvat(String mvat) {
		this.mvat = mvat;
		return this;
	}
	public Long getCard() {
		return card;
	}
	public Card setCard(Long card) {
		this.card = card;
		return this;
	}
	public Integer getCardNo() {
		return cardNo;
	}
	public Card setCardNo(Integer cardNo) {
		this.cardNo = cardNo;
		return this;
	}
	public Long getRfidNo() {
		return rfidNo;
	}
	public Card setRfidNo(Long rfidNo) {
		this.rfidNo = rfidNo;
		return this;
	}
	public Integer getQty() {
		return qty;
	}
	public Card setQty(Integer qty) {
		this.qty = qty;
		return this;
	}
//	public Integer getBadQty() {
//		return badQty;
//	}
//	public Card setBadQty(Integer badQty) {
//		this.badQty = badQty;
//		return this;
//	}
	public CardType getCardType() {
		return cardType;
	}
	public Card setCardType(CardType cardType) {
		this.cardType = cardType;
		return this;
	}
	public Integer getPartID() {
		return partID;
	}
	public Card setPartID(Integer partID) {
		this.partID = partID;
		return this;
	}
	public String getPart() {
		return part;
	}
	public Card setPart(String part) {
		this.part = part;
		return this;
	}
	public String getUhfID() {
		return uhfID;
	}
	public Card setUhfID(String uhfID) {
		this.uhfID = uhfID;
		return this;
	}
	@Override
	public String toString() {
		return String.format(
				"Card [poid=%s, po=%s, styleNo=%s, mcolorID=%s, mcolor=%s, size=%s, mvat=%s, card=%s, cardNo=%s, rfidNo=%s, qty=%s, cardType=%s, partID=%s, part=%s, uhfID=%s]",
				poid, po, styleNo, mcolorID, mcolor, size, mvat, card, cardNo, rfidNo, qty, cardType, partID, part,
				uhfID);
	}
	
	
}
